
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="ot" uri="http://www.ideyatech.com/tides"%>

<td colspan="5">
<form:form commandName="employee" id="employee-form-${employee.id}" action="">
	<ot:form_title isNew="${employee.isNew}" label="label.employee"/>
	<div class="content">	
		<spring:bind path="employee.*">
		<c:if test="${status.error}">
			<div class='errorBox'>
				<!-- this is a hack to crud.js to handle validation messages. -->
				<c:if test="${employee.isNew}">
				<!-- <tr id="employee-row-new" -->
				</c:if>
				<form:errors path="*" />
            </div>
		</c:if>
		</spring:bind>
		<div class='fieldsBox'>
			<p><label for="employeeID"><spring:message code="label.employee.employeeID" />: </label>
	<form:input path="employeeID" maxlength="20"  /> <sup class="required">*</sup></p>

			<p><label for="firstName"><spring:message code="label.employee.firstName" />: </label>
	<form:input path="firstName" maxlength="20"  /> <sup class="required">*</sup></p>

			<p><label for="middleName"><spring:message code="label.employee.middleName" />: </label>
	<form:input path="middleName" maxlength="20"  /> </p>

			<p><label for="lastName"><spring:message code="label.employee.lastName" />: </label>
	<form:input path="lastName" maxlength="20"  /> <sup class="required">*</sup></p>

		</div>
		<div class="requiredInfo">
			<sup class="required">*</sup> Indicates required field.
		</div>
				<div class="button">
		  	<ot:submit_button id="${employee.id}" page="employee.jspx" formName="employee-form-${employee.id}" prefix="employee"/>
  			<ot:cancel_button id="${employee.id}" page="employee.jspx" prefix="employee"/>
		</div>
	</div>
</form:form>
</td> 